<!DOCTYPE html>
<html>
<head>
    <title>API管理平台</title>
    <link rel="shortcut icon" href="/xxl/favicon.ico" type="image/x-icon" />

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.5 -->
    <link rel="stylesheet" href="/xxl/adminlte/bootstrap/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css"> -->
    <link rel="stylesheet" href="/xxl/plugins/font-awesome-4.5.0/css/font-awesome.min.css">
    <!-- Ionicons -->
    <!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css"> -->
    <link rel="stylesheet" href="/xxl/plugins/ionicons-2.0.1/css/ionicons.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="/xxl/adminlte/dist/css/AdminLTE-local.min.css">
    <!-- AdminLTE Skins. Choose a skin from the css/skins folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" href="/xxl/adminlte/dist/css/skins/_all-skins.min.css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

    <!-- pace -->
    <link rel="stylesheet" href="/xxl/plugins/pace/themes/pace-theme-flash.css">
    <link rel="stylesheet" href="/xxl/adminlte/plugins/iCheck/square/_all.css">
    <link rel="stylesheet" href="/xxl/plugins/editor.md-1.5.0/main/editormd.min.css">
    <link rel="stylesheet" href="/xxl/plugins/jsontree/jquery.jsonview.css">

</head>
<body class="hold-transition skin-blue sidebar-mini ">
<div class="gray-bg">


    <!-- Content Wrapper. Contains page content -->
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>接口详情</h1>
        </section>

        <section class="content">
            <form class="form-horizontal" id="ducomentForm" >
                <input type="hidden" name="id" value="1" >
                <input type="hidden" name="projectId" value="1" >

                <div class="box box-primary">
                    <div class="box-header with-border">
                        <h3 class="box-title">基础信息</h3>
                        <div class="box-tools pull-right">
                            <button class="btn btn-default btn-xs" type="button" onclick="javascript:window.location.href='/xxl-api-admin/group?projectId=1&groupId=0'" >返回接口列表</button>
                            <button class="btn btn-default btn-xs" type="button" onclick="javascript:window.location.href='/xxl-api-admin/document/updatePage?id=1'" >修改接口</button>
                        </div>
                    </div>

                    <div class="box-body">
                        <div class="form-group">
                            <label class="col-sm-1">URL</label>
                            <div class="col-sm-6">
                                <select id="projectBaseUrlUpdate" >
                                    <option value="http://localhost:8081" >线上环境</option>
                                </select>
                                &nbsp;&nbsp;
                                <span id="projectBaseUrl" >http://localhost:8081</span><span>/test/user</span>
                            </div>
                            <label class="col-sm-1">分组</label>
                            <div class="col-sm-4">
                                默认分组
                            </div>

                        </div>
                        <div class="form-group">
                            <label class="col-sm-1">Method</label>
                            <div class="col-sm-6">
                                POST






                            </div>
                            <label class="col-sm-1">状态</label>
                            <div class="col-sm-4">
                                启用
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-1">名称</label>
                            <div class="col-sm-11">
                                <span style="color: #00a65a;">测试用户接口</span>
                            </div>
                        </div>
                    </div>
                </div>


                <div class="box box-primary">
                    <div class="box-header">
                        <h3 class="box-title">请求参数</h3>
                    </div>

                    <div class="box-body no-padding" >
                        <table class="table table-striped">
                            <tr>
                                <th style="width: 25%;" >参数名称</th>
                                <th style="width: 25%;" >参数说明</th>
                                <th style="width: 25%;" >数据类型</th>
                                <th style="width: 25%;" >是否必填</th>
                            </tr>
                            <tr>
                                <td>name</td>
                                <td>姓名</td>
                                <td>STRING</td>
                                <td>
                                    必填
                                </td>
                            </tr>
                            <tr>
                                <td>age</td>
                                <td>年龄</td>
                                <td>INT</td>
                                <td>
                                    必填
                                </td>
                            </tr>
                            <tr>
                                <td>email</td>
                                <td>邮箱</td>
                                <td>STRING</td>
                                <td>
                                    必填
                                </td>
                            </tr>
                            <tr>
                                <td>mobile</td>
                                <td>手机号</td>
                                <td>STRING</td>
                                <td>
                                    必填
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>

                <div class="nav-tabs-custom">
                    <!-- Tabs within a box -->
                    <ul class="nav nav-tabs pull-right">
                        <li><a href="#fail_resp" data-toggle="tab">失败响应结果</a></li>
                        <li class="active"><a href="#success_resp" data-toggle="tab">成功响应结果</a></li>
                        <li class="pull-left header">响应结果</li>
                    </ul>
                    <div class="tab-content no-padding">
                        <!-- Morris chart - Sales -->
                        <div class="chart tab-pane active" id="success_resp" style="position: relative; height: 100%;">
                            <div class="box-body">
                                JSON
                                <br>
                                <pre name="successRespExample" class="jsonViewPre" style="width: 100%; height: 100%; font-size: 14px; line-height: 18px; border: 1px solid #dddddd; padding: 10px;margin-top: 15px;" ></pre>
                            </div>
                        </div>
                        <div class="chart tab-pane" id="fail_resp" style="position: relative; height: 100%;">
                            <div class="box-body">
                                JSON
                                <br>
                                <pre name="failRespExample" class="jsonViewPre" style="width: 100%; height: 100%; font-size: 14px; line-height: 18px; border: 1px solid #dddddd; padding: 10px;margin-top: 15px;" ></pre>
                            </div>
                        </div>
                    </div>
                </div>




                <div class="box box-primary">
                    <div class="box-header">
                        <h3 class="box-title">Mock数据</h3>
                        <div class="box-tools pull-right">
                            <button class="btn btn-info btn-xs" type="button" id="addMock" >+ Mock数据</button>
                        </div>
                    </div>
                    <div class="box-body no-padding" >
                        <table class="table table-striped">
                            <tr>
                                <th style="width: 25%;" >响应数据类型(MIME)</th>
                                <th style="width: 75%;" >操作</th>
                            </tr>
                            <textarea id="respExample_1" style="display: none;" >{
"name": "guonianlei",
"age": 20,
"email": "123@qq.com",
"mobile": "123456"
}</textarea>
                            <tr>
                                <td>JSON</td>
                                <td>
                                    <a href="/xxl-api-admin/mock/run/32731398-1323-4d55-805b-aedf9b7dfd92" target="_blank" >运行</a>
                                    &nbsp;
                                    <a href="javascript:;" class="updateMock" _id="1" respType="JSON" style="color: gray;" onmouseover="this.style.cssText='color:silver;'" onmouseout="this.style.cssText='color:gray;'"><i class="fa fa-fw fa-wrench"></i>修改</a>
                                    &nbsp;
                                    <a href="javascript:;" class="deleteMock" _id="1" style="color:gray;" onmouseover="this.style.cssText='color:silver;'" onmouseout="this.style.cssText='color:gray;'"><i class="fa fa-fw fa-trash-o"></i>删除</a>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>

                <div class="box box-primary">
                    <div class="box-header">
                        <h3 class="box-title">Test历史</h3>
                        <div class="box-tools pull-right">
                            <button class="btn btn-info btn-xs" type="button" onclick="javascript:window.open('/xxl-api-admin/test?documentId=1');" >+ 接口测试</button>
                        </div>
                    </div>
                    <div class="box-body no-padding" >
                        <table class="table table-striped">
                            <tr>
                                <th style="width: 25%;" >创建时间</th>
                                <th style="width: 75%;" >操作</th>
                            </tr>
                            <tr>
                                <td>2020-7-17 10:27:56</td>
                                <td>
                                    <a href="/xxl-api-admin/test?documentId=1&testId=1" target="_blank" >运行</a>
                                    &nbsp;
                                    <a href="javascript:;" class="deleteTest" _id="1" style="color:gray;" onmouseover="this.style.cssText='color:silver;'" onmouseout="this.style.cssText='color:gray;'"><i class="fa fa-fw fa-trash-o"></i>删除</a>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>


            </form>

        </section>


</div>

<!-- 新增-分组.模态框 -->
<div class="modal fade" id="addMockModal" tabindex="-1" role="dialog"  aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" >新增Mock数据</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal form" role="form" >
                    <div class="form-group">
                        <div class="col-sm-12">
                            响应数据类型(MIME)：
                            <input type="radio" class="iCheck" name="respType" value="JSON" checked >JSON  &nbsp;&nbsp;
                            <input type="radio" class="iCheck" name="respType" value="XML"  >XML  &nbsp;&nbsp;
                            <input type="radio" class="iCheck" name="respType" value="HTML"  >HTML  &nbsp;&nbsp;
                            <input type="radio" class="iCheck" name="respType" value="TEXT"  >TEXT  &nbsp;&nbsp;
                            <input type="radio" class="iCheck" name="respType" value="JSONP"  >JSONP  &nbsp;&nbsp;
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-12">
                            <textarea name="respExample" style="width: 100%; height: 300px; font-size: 14px; line-height: 18px; border: 1px solid #dddddd; padding: 10px;" ></textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-offset-3 col-sm-6">
                            <button type="button" class="btn btn-primary save"  >保存</button>
                            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                            <input type="hidden" name="documentId" value="1" >
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<!-- 更新-分组.模态框 -->
<div class="modal fade" id="updateMockModal" tabindex="-1" role="dialog"  aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" >更新Mock数据</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal form" role="form" >
                    <div class="form-group">
                        <div class="col-sm-12">
                            响应数据类型(MIME)：
                            <input type="radio" class="iCheck" name="respType" value="JSON" >JSON  &nbsp;&nbsp;
                            <input type="radio" class="iCheck" name="respType" value="XML" >XML  &nbsp;&nbsp;
                            <input type="radio" class="iCheck" name="respType" value="HTML" >HTML  &nbsp;&nbsp;
                            <input type="radio" class="iCheck" name="respType" value="TEXT" >TEXT  &nbsp;&nbsp;
                            <input type="radio" class="iCheck" name="respType" value="JSONP" >JSONP  &nbsp;&nbsp;
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-12">
                            <textarea name="respExample" style="width: 100%; height: 300px; font-size: 14px; line-height: 18px; border: 1px solid #dddddd; padding: 10px;" ></textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-offset-3 col-sm-6">
                            <button type="button" class="btn btn-primary save"  >保存</button>
                            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                            <input type="hidden" name="documentId" value="1" >

                            <input type="hidden" name="id" >
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>


<!-- jQuery 2.1.4 -->
<script src="/xxl/adminlte/plugins/jQuery/jquery-2.2.3.min.js"></script>
<!-- Bootstrap 3.3.5 -->
<script src="/xxl/adminlte/bootstrap/js/bootstrap.min.js"></script>
<!-- FastClick -->
<script src="/xxl/adminlte/plugins/fastclick/fastclick.min.js"></script>
<!-- AdminLTE App -->
<script src="/xxl/adminlte/dist/js/app.min.js"></script>
<script src="/xxl/adminlte/plugins/slimScroll/jquery.slimscroll.min.js"></script>

<!-- pace -->
<script src="/xxl/plugins/pace/pace.min.js"></script>
<script src="/xxl/plugins/jquery/jquery.cookie.js"></script>
<script src="/xxl/plugins/jquery/jquery.validate.min.js"></script>

<script src="/xxl/plugins/layer/layer.js"></script>

<script src="/xxl/js/common.1.js"></script>
<script>var base_url = '/xxl-api-admin';</script>

<script src="/xxl/adminlte/plugins/iCheck/icheck.min.js"></script>
<script src="/xxl/plugins/editor.md-1.5.0/main/editormd.min.js"></script>
<script src="/xxl/plugins/editor.md-1.5.0/lib/marked.min.js"></script>
<script src="/xxl/plugins/editor.md-1.5.0/lib/prettify.min.js"></script>
<script src="/xxl/plugins/jsontree/jquery.jsonview.js"></script>
<script src="/xxl/js/document.detail.1.js"></script>
</body>
</html>
